package com.chart.web.controller.system;
import com.chart.common.core.domain.AjaxResult;
import com.chart.system.domain.RegistrationChannels;
import com.chart.system.service.RegistrationChannelsService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 获取注册渠道
 *
 * @author 罗继全
 * 2024/7/5 11:28
 */


@RestController
@RequestMapping
public class RegistrationChannelsController {

    @Autowired
    private RegistrationChannelsService registrationChannelsService;

    @ApiOperation("/v2获取注册渠道")
    @GetMapping("/v2/getSource")
    public AjaxResult getIdByremark(@RequestParam String remark) {
        List<RegistrationChannels> registrationChannelsList = registrationChannelsService.getIdByremark(remark);
        return AjaxResult.success(registrationChannelsList);
    }


}
